package com.ruoyi.mybatchscheduling.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备信息对象 machine_unit
 * 
 * @author ruoyi
 * @date 2024-01-27
 */
public class MachineUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备单元编号 */
    private Long id;

    /** 设备数量 */
    @Excel(name = "设备数量")
    private Long machineQuantity;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long machineId;

    /** 设备单元状态 (1：工作中，0：空闲) */
    @Excel(name = "设备单元状态 (1：工作中，0：空闲)")
    private Long unitState;

    /** 繁忙设备编号 */
    @Excel(name = "繁忙设备编号")
    private Long busyMachineId;

    /** 空闲设备编号 */
    @Excel(name = "空闲设备编号")
    private Long freeMachineId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMachineQuantity(Long machineQuantity) 
    {
        this.machineQuantity = machineQuantity;
    }

    public Long getMachineQuantity() 
    {
        return machineQuantity;
    }
    public void setMachineId(Long machineId) 
    {
        this.machineId = machineId;
    }

    public Long getMachineId() 
    {
        return machineId;
    }
    public void setUnitState(Long unitState) 
    {
        this.unitState = unitState;
    }

    public Long getUnitState() 
    {
        return unitState;
    }
    public void setBusyMachineId(Long busyMachineId) 
    {
        this.busyMachineId = busyMachineId;
    }

    public Long getBusyMachineId() 
    {
        return busyMachineId;
    }
    public void setFreeMachineId(Long freeMachineId) 
    {
        this.freeMachineId = freeMachineId;
    }

    public Long getFreeMachineId() 
    {
        return freeMachineId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("machineQuantity", getMachineQuantity())
            .append("machineId", getMachineId())
            .append("unitState", getUnitState())
            .append("busyMachineId", getBusyMachineId())
            .append("freeMachineId", getFreeMachineId())
            .toString();
    }
}
